package com.yyplatform.admin.platform.role.model.entity;

import com.yyplatform.admin.infra.model.entity.BaseEntity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * Created on 2024-09-12
 */
@Entity
@Getter
@Setter
@Table(name = "sys_role")
public class SysRoleEntity extends BaseEntity {

    @Column(name = "name", nullable = false, columnDefinition = " varchar(50) comment '角色名称' ")
    private String name;

    @Column(name = "code", nullable = false, columnDefinition = " varchar(50) comment '角色编码' ")
    private String code;


    @Column(name = "enabled", nullable = false, columnDefinition = " tinyint(1) comment '是否启用' ")
    private Boolean enabled;

    @Column(name = "order_num", nullable = false, columnDefinition = " int(5) comment '排序' ")
    private Integer orderNum;

    @Column(name = "data_scope", nullable = false, columnDefinition = " tinyint(1) comment '数据范围' ")
    private Integer dataScope;

    @Column(name = "remark", columnDefinition = " varchar(100) comment '备注' ")
    private String remark;


}
